package com.foreknow.test_Interface.demo06;

public class Rect extends Shape {
    public double a;
    public double b;

    public void setWidth(double width) {
        this.a = width;
    }

    public void setHeight(double height) {
        this.b = height;
    }

    public double getArea() {
        double area = 0;
        area = a * b;
        return area;
    }
}
